const express = require('express');
const HostService = require('./../services/host');
const HostDao = require('./../dao/host');

const hostRouter = express.Router();
const hostService = new HostService(new HostDao());

hostRouter.get('/query', (req, res, next) => {
  hostService.query(req.query).then(data => {
    res.finalSendData = data;
    next();
  });
});

module.exports = hostRouter;

